/*
 *  intrp.c
 *  Fib
 *
 *  Created by John Bassham on 11/13/08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */

#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <time.h>

#include "bool.h"
#include "mod.h"

#include "intrp.h"

bool is_intrp_ready(const struct intrp *intrp)
{
	assert(intrp);
	return !intrp->has_init_errors;
}

const char *get_intrp_return_type(const struct intrp *intrp)
{
	assert(intrp);
	return intrp->return_type_str;
}

bool init_intrp(struct intrp *intrp, const struct intrp_ops *ops)
{
	int i;
	
	assert(intrp);
	assert(ops);
	
	intrp->is_interactive = ops->is_interactive;
	intrp->only_check_syntax = ops->only_check_syntax;
	intrp->return_type_str = ops->return_type_str;
	
	assert(ops->primary_mod_indx < ops->mod_files_cnt);
	for (i = 0; i < ops->mod_files_cnt; i++) {
	}
}

void *intrp_run(struct intrp *intrp)
{
	assert(intrp);
	return NULL;
}
